{extend name="public:base" /}
{block name="breadcrumbHeader"}
<h2>{$seal.name}使用列表</h2>
{/block}
{block name="breadcrumb"}
<ol class="breadcrumb">
    <li class="breadcrumb-item">
        <a href="index.html">主页</a>
    </li>
    <li class="breadcrumb-item">
        <a href="index.html">印章申请统计</a>
    </li>
    <li class="breadcrumb-item active">
        <strong>{$seal.name}使用列表</strong>
    </li>
</ol>
{/block}
{block name="action"}
<a type="button" class="btn btn-w-m btn-primary"
   href="{:url('dc9')}?seal_id={$seal.id}}">  导出
</a>
{/block}
{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight" xmlns="http://www.w3.org/1999/html">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <table class="table table-stripped ">
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>印章名称</th>
                            <th>审批类型</th>
                            <th>文件名称</th>
                            <th>申请用章次数</th>
                            <th>状态</th>
                            <th>申请时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {notempty name="list"}
                        {volist name="list" id="vo" key="k"}
                        <tr>
                            <td>{$k}</td>
                            <td>{$seal.name}</td>
                            <td>{$vo.approval.type_name}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.frequency}</td>
                            <td>{$vo.status_txt}</td>
                            <td>{$vo.create_time}</td>
                            <td class="project-actions">
                                <a href="{:url('processFlows', ['id' => $vo.id])}"
                                   class="btn  btn-warning btn-sm process-flow-btn-dialog"> 流程
                                </a>
                                <a href="{:url('show')}?id={$vo.id}" class="btn btn-primary btn-sm detail"><i
                                        class="fa fa-eye"></i> 详情 </a>
                            </td>
                        </tr>
                        {/volist}
                        {/notempty}
                        </tbody>
                    </table>
                    {$list->render()}
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
<script type="text/javascript">
    $(".process-flow-btn-dialog").on("click", function (e) {
        e.preventDefault();
        $.get($(e.currentTarget).attr("href"), function (data) {
            new ModalDialog({
                content: data,
                closeBtn: false,
                success: function (data) {
                    return true;
                }
            }).show();
        })
    });
</script>
{/block}
{block name="css"}
<link rel="stylesheet" href="__ADMIN__/css/process-timeline.css">
{/block}